package pers.byxiaobai.levelhealth.config;
import org.bukkit.configuration.file.YamlConfiguration;

import pers.byxiaobai.levelhealth.utils.StringUtil;

/** 
* @author byxiaobai
* 配置文件数据
*/
public class ConfigData {
	public static ConfigData INSTANCE=new ConfigData();
	private ConfigData() {}
	private YamlConfiguration config=ConfigManager.INSTANCE.getConfigYaml("config.yml");
	/**
	 * 是否开启升级提示
	 */
	public boolean IS_LEVEL_UP_MESSAGE_ENABLE=config.getBoolean("LevelUpMessage.isEnable");
	/**
	 * 升级提示
	 */
	public String LEVEL_UP_MESSAGE=StringUtil.replaceAllColorChar(config.getString("LevelUpMessage.Message"));
	/**
	 * 是否升级时重置血量
	 */
	public boolean IS_RESET_HEALTH_ON_LEVEL_UP=config.getBoolean("ResetHealth");
	/**
	 * 每一级增加的血量
	 */
	public double ADD_HEALTH_EACH_LEVEL=config.getDouble("LevelHealth");
	/**
	 * 玩家基础血量
	 */
	public double PLAER_BASE_HEALTH=config.getDouble("PlayerBaseHealth");
	/**
	 * 是否开启血量压缩
	 */
	public boolean IS_ENABLE_HEALTH_SCALE=config.getBoolean("HealthScale.Enable");
	/**
	 * 血量压缩在客户端显示的血量值
	 */
	public double HEALTH_SCALE_VALUE=config.getDouble("HealthScale.Value");
}